﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace POB
{
    static class Debugger
    {
        static List<string> DebugLines = new List<string>();

        public static void WriteLine(string debugMessage)
        {
            Write(debugMessage);
            DebugLines.Add(string.Empty);
        }

        public static void Write(string debugMessage)
        {
            if (DebugLines.Count == 0)
            {
                DebugLines.Add(string.Empty);
            }
            DebugLines[DebugLines.Count - 1] += debugMessage;
        }

        public static void Clear()
        {
            DebugLines.Clear();
        }

        public static List<string> GetOutput()
        {
            return new List<string>(DebugLines);
        }
    }
}
